﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IndyMosaic.Models.Web.PrayerRequest>" %>
<%@ Import namespace="IndyMosaic.Core.Extensions" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Prayer Request
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Prayer Request</h2>
    <% using (Html.BeginForm())
       {%>
        
        <div class="editor-label">
            <%: Html.LabelFor(model => model.Name) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.Name)%>
        </div>
        <div class="editor-label">
            <label for="PhoneNumber">Phone Number</label>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.PhoneNumber)%>
        </div>
        <div class="editor-label">
            <label for="EmailAddress">E-mail</label>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.EmailAddress)%>
        </div>
        <div class="editor-label">
            <span>What can we be praying with and for you about?</span>
        </div>
        <div class="editor-field">
            <%: Html.TextAreaFor(model => model.Details, new { style = "width:696px;height:241px;" })%>
        </div>
        <div class="editor-label">
            Confidentiality
        </div>
        <div class="editor-label">
            <%: Html.DropDownListFor(model => model.Confidentiality, Html.ToSelectList(Model.Confidentiality)) %>
        </div>
        <div style="margin-top: 20px; margin-bottom: 60px;">
            <%= Html.GenerateCaptcha() %>
            <% if(!string.IsNullOrWhiteSpace((ViewData["errorMessage"] as string)))
               {%>
                <div>
                  <%: ViewData["errorMessage"] %>
                  </div>
               <%} %>
            <input type="submit" value="Submit Prayer Request" />
        </div>
   <%
        } %>


</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>
